// import User from '@/views/user/index.vue'
import UserLayout from '@/views/user/UserLayout.vue'
import UserLogin from '@/views/Login/UserLogin.vue'
import UserRegistry from '@/views/registry/UserRegistry.vue'
import UserDetails from '@/views/user/UserDetails.vue'
import UserPassword from '@/views/user/UserPassword.vue'
import OnlineReserve from '@/views/user/OnlineReserve.vue'
import OrderSearch from '@/views/user/OrderSearch'
import MemberShip from '@/views/user/MemberShip'
import EnjoyDiscount from '@/views/user/EnjoyDiscount'
import UserHome from '@/views/user/UserHome.vue'
import RoomDetails from '@/views/user/RoomDetails.vue'
import EmpLogin from '@/views/Login/EmpLogin.vue'
// import { component } from 'vue/types/umd'
const userSecondRouter = [
  // {
  //   path: '/',
  //   redirect: '/font/layout'
  // },
  {
    path: 'user',
    component: UserLayout,
    redirect: '/user/userHome',
    // component: UserHome
    // redirect: '/font/layout/home',
    children: [
      {
        path: 'userHome',
        component: UserHome
      },
      {
        path: 'onlineReserve',
        component: OnlineReserve
      },
      {
        path: 'orderSearch',
        component: OrderSearch
      },
      {
        path: 'memberShip',
        component: MemberShip
      },
      {
        path: 'enjoyDiscount',
        component: EnjoyDiscount
      },
      {
        path: 'roomDetails',
        component: RoomDetails
      }
    ]
  },
  {
    path: 'login',
    component: UserLogin
  },
  {
    path: 'registry',
    component: UserRegistry
  },
  {
    path: 'details',
    component: UserDetails
  },
  {
    path: 'password',
    component: UserPassword
  },
  {
    path: 'manage/login',
    component: EmpLogin
  },
]

export default userSecondRouter
